import { app, $app, $w } from '../../../../../app/weapps-api';

/*
* 可通过 this.$WEAPPS_COMP.handler.xxx 访问这里定义的方法
* 
* 如果需要 async-await，请修改成 export default async function() {}
*/

export default function () {
    let { backgroundColor, backgroundImage } = this.$WEAPPS_COMP.props.data
    return {
        backgroundColor,
        backgroundImage: `url(${backgroundImage})`,
        backgroundRepeat:"no-repeat",
        backgroundSize: "corver"
    }
}